-include ../Config.mak
REVISION=$(shell svn info https://open-rp.googlecode.com/svn/trunk | grep Revision | cut -d: -f2)
VERSION="v$(VER_MAJOR).$(VER_MINOR) $(VER_RELEASE)$(REVISION)"

all:
	@pbmtext -font ter-u16b.bdf -nomargins $(VERSION) > version.pbm
	@pngtopnm splash.png > splash.pnm
	@pnmcomp -align=right -valign=bottom -xoff=-10 -yoff=-10 -opacity=0.3 version.pbm splash.pnm | pnmtopng > splash-version.png
	@echo "#ifndef _IMAGES_H" > ../images.h
	@echo "#define _IMAGES_H" >> ../images.h
	xxd -i icon.bmp >> ../images.h
	xxd -i icon-osx.bmp >> ../images.h
	xxd -i error.png >> ../images.h
	xxd -i splash-version.png >> ../images.h
	xxd -i mode_game.png >> ../images.h
	xxd -i mode_ps1.png >> ../images.h
	xxd -i mode_vsh.png >> ../images.h
	@echo "#endif // _IMAGES_H" >> ../images.h

# vi: ts=4
